Antiferromagnetism, spin-glass state, H–T phase diagram, and inverse magnetocaloric effect in Co2RuO4