Origin of optical nonlinearity for PbO, TiO2, K2O, and SiO2 optical glasses