How do you determine the formula of a hydrate?