Learning Electron Bunch Distribution along a FEL Beamline by Normalising Flows