Optimized 3D simulation method for modeling of out-of-plane radiation in silicon photonic integrated circuits