Optimization of a microscale, axial-flux, permanent-magnet generator