Hydrogels in Poor Solvents: A Molecular Dynamics Study