Femtosecond response of optical constants due to charge-transfer excitations in Nd2CuO4