Design of compressors for FEL pulses using deformable gratings