Effects of Ion Valency on Polyelectrolyte Brushes: A Unified Theory