Electronic structure and reactivity of the Co/MoS2(0001) interface