Quake strikes New Zealand, thousands flee homes as tsunami hits