Designing New Structures Of Magnetic Materials: Cases Of Metal Borides And Metal Chalcogenides