Measurement of the B± production asymmetry and the CP asymmetry in B±→J/ψK± decays