Nonlinear optical properties of DPO and DMPO: a theoretical and computational study