Superconducting cavities for accelerators