Control and interconversion of cocrystal stoichiometry in grinding: stepwise mechanism for the formation of a hydrogen-bonded cocrystal