An automated method for the detection of field line resonance frequencies using ground magnetometer techniques