Energetics of discrete selectivity bands and mutation-induced transitions in the calcium-sodium ion channels family.