Hairpin windings: Sensitivity analysis and guidelines to reduce ac losses