Bolivia, Costa Rica hit by strong earthquakes