Reversible control of magnetic and transport properties of NdNiO3– epitaxial films