Modelling and simulation of flexible instruments for minimally invasive surgical training in virtual reality