Man accused of Christchurch mosque attacks pleads guilty