Effects of charge density and counterions on the assembly of polyelectrolyte multilayers