Mesostructured cobalt and nickel molybdenum sulfides