Interfacial electronic trap lifetimes studied by the photomodulation of second-harmonic generation processes