Multibody modeling of railway vehicles: innovative algorithms for the detection of wheel–rail contact points