Electronic structure of mononuclear and radical-bridged dinuclear cobalt(II) single-molecule magnets