All-optical gate with picosecond response in semiconductor-doped glasses