Power supplies with power electronics for efficient use of energy