Nonlinear silicon photonics analyzed with the moment method