Controlled switching power supplies