Magnetoresistance of multilayers on microstructured substrates