Calculation formula for electromagnetic energy storage of superconducting coil