Text this: State switch control of magnetically suspended flywheel energy storage system in uninterrupted power supply system