Design Sensitivity Analysis and Optimization of Electromagnetic Systems