Analysis of patient flows in elective surgery: Modelling and optimisation of the hospitalisation process