Macroscopic Phase Transitions in Two-Dimensional Granular Materials