Modelling and simulation of materials synthesis: Chemical vapor depositoion and infiltration of pyrolytic carbon