Modelling and simulation for the integrated design of mechatronic systems