Costa Rica shaken by powerful earthquake