Mexican economy posts contraction for 1st time in 3 years