Modelling and simulation of MOS devices