Large-scale magnetic field mapping and magnetic map-based localization