The lattices of varieties and pseudovarieties of band monoids