Density-functional theory applied to Rh(111) and CO/Rh(111) systems: Geometries, energies, and chemical shifts