Imaging of vortex configurations in thin films by scanning-tunneling microscopy