Simulation of Superconducting Machine With Stacks of Coated Conductors Using Hybrid A-H Formulation