Design and Optimisation of an automatic frequency control system for a radio frequency electron paramagnetic resonance spectrometer