Monolithically integrated photonic switching device using an MSM PD, MESFETs, and a VCSEL