Electronic temperature regulator for three-phase electrical water heaters, combined with two heat exchangers