Modeling of optical ring resonator in z- domain and evaluation of its performance as integrated photonic logic devices