Chirped pulse amplification in a XUV free-electron laser