Optical and electrical characterization of lateral p-n junctions on GaAs (111)A patterned substrates