Electrical and optical control of single spins integrated in scalable semiconductor devices