Modelling and simulation of reaction mechanisms in early growth of STO thin films from ab initio calculations