Strong quake in New Zealand collapses buildings