The measurement of magnetic fields in the solar atmosphere above sunspots using gyroresonance emission