Energy chirp measurements by means of an RF deflector: a case study the gamma beam source LINAC at ELI-NP