Apparatus for tipping wagons or mine cars sideways by passing the vehicles over a stretch of transversely-inclined rails