Magnitude 5.2 earthquake rattles Ecuador