CVM and inverse CVM: Examples in Transition-Metal Alloys and Compounds