Power supplies with voltage and current regulation