Numerical simulation of all-optical logic gates based on hybrid-cavity semiconductor lasers