Sensors based on dielectric metamaterials