Smartphones could one day be used to map magnetic fields and become portable quantum sensors