New Zealand reopens mosques that were attacked