Effect of longitudinal and shear stress on photonic crystal based ring resonator