Hard and semi-hard magnetic materials based on cobalt and cobalt alloys