Semiconductor-metal hybrid structures as local magnetic-field probes: Magnetoresistance and spatial sensitivity profile