Optical parametric amplification of 1-kHz high-energy picosecond midinfrared pulses and application to infrared transient-grating experiments on diamond