Optimisation of vehicle-track interaction at railway crossings