Design of motor/generator for Flywheel Batteries