Working principle and application of flywheel energy storage