On the losses in a high-speed permanent-magnet generator with rectifier