Effect of substrate on the structure and optical properties of ZnO nanorods