Molecular Hydrogen in Galaxy Simulations