A Fast Hybrid Method for Analysis and Design of Photonic Structures