Energy loss in superconducting magnetic energy storage coils