Field-induced quantum metal–insulator transition in the pyrochlore iridate Nd2Ir2O7