Modeling of chemical vapor deposition: I. General considerations