Versatile thin-film reactor for photochemical vapor generation.