Optimizing the design of very high energy gamma ray telescopes