Mid-infrared photonic sensors based on metamaterial structures