Modelling interplanetary CMEs using magnetohydrodynamic simulations