Flat lenses constructed by graded negative index-based photonic crystals with tuned configurations