Thermodynamical properties of unresolved magnetic flux tubes. I: A diagnostic method based on circular polarization ratios in line pairs