Machine design and electron beam control of a single-pass linac for Free Electron Laser : the FERMI@Elettra case study / Simone Di Mitri