Modeling, optimization, and performance evaluation of fast, miniaturized 2D silicon photonic crystal n- and p-type optical devices | Synapse