Quakes shake Japan