Large tuning of the optical properties of nanoscale NdNiO3 via electron doping