Tsunami warning as strong quake hits northern Japan