Systematic ab-initio study of the ligand-field spectra of hexacyanometalate complexes