The Binding in Neutral and Cationic 3d and 4d Transition Metal Monoxides and Sulfides