Design and Optimization of Silicon Photonic Devices