GaAs side-by-side direct wafer bonding and formation of lateral pn junction