Post-Newtonian two-body and n-body problems with electric charge in general relativity