Modelling of a magnetic sensor based on vacuum field emission