5.6 magnitude earthquake shakes buildings in Taiwan