6.3 magnitude earthquake shakes Japan