Site occupancies and stoichiometries in hydrides of intermetallic compounds: Geometric considerations