Second-Order Optical Nonlinearity in Silicon Waveguides: Inhomogeneous Stress and Interfaces