Room-temperature single-wavelength optical latching circuits using GaAs bistable devices as logic gates