Theory of magnetoresistance in magnetic superlattices