Defect State and Magnetic Properties of CoO—MgO Solid Solutions