Power supplies with galvanic isolation