Giant Magnetoresistance Calculated from First Principles