pp annihilation into π+π− and K+K− from atomic p states