Combining electronics and photonics