A tool for simulating rotating coil magnetometers