A new methodology to study the pantograph–catenary dynamics in curved railway tracks