Earthquake shakes Mexico and Southwest U.S.