Powerful quake rocks Costa Rica