Application of metamaterials to estimate refractive indexes