Polyelectrolyte brushes in external fields: molecular dynamics simulations and mean-field theory.