Universal power supplies with current and voltage regulation