Ternary photonic crystal with left-handed material layer for refractometric application