Depth-resolved profile of the magnetic field beneath the surface of a superconductor with a few nm resolution