Scanning tunneling microscopy for laterally resolved measurements of magnetoresistance through a point contact