Thermodynamic analysis of the filling fraction limits for impurities in CoSb3 based on ab initio calculations