Photonic Crystal-Based Passive And Active Devices For Optical Communications