Influence of flexibility on active pantograph catenary control system