Electronic structure and physical properties of Alkali Metal Oxides and Chalcogenides and Magnetism induced by SP Dopants