Influence of pump wavelength and crystal length on the phase matching of optical rectification