Magnitude 5.6 quake hits off northern Japan