Process and apparatus for formation of photovoltaic compounds