Chemical equilibrium of the ferromagnetic LaCo5H system in strong magnetic fields