Multichamber processing for optoelectronics