Optimized terahertz generation via optical rectification in ZnTe crystals