GaAs diodes as temperature sensors in magnetic fields