Detection and localisation of magnetic objects