Modeling of thin-film deposition processes