Modeling of surface-induced second-harmonic generation from multilayer structures by the transfer matrix method.