Collapse of Polyelectrolyte Macromolecules by Counterion Condensation and Ion Pair Formation: A Molecular Dynamics Simulation Study