Methods of protecting power semiconductors in electrical power supplies