Modelling the microstructural evolution of cement pastes. Part I: numerical approach