A comparative study of electronic structure and bonding in transition metal monocarbides