On-chip optoelectronic logic gates operating in the telecom band