Optical filter based on a coupled bilayer photonic crystal