Spatial filtering by chirped photonic crystals