An ab initio study of Fe(CO)n, n=1,5, and Cr(CO)6