Modelling and analysis of Virtual Coupling with dynamic safety margin considering risk factors in railway operations