Apparatus and method for photochemical vapor deposition