Royal commission to investigate terror attacks in NZ