General Airgap Field Modulation Theory for Electrical Machines