Measurement of the J/ψ and ψ′ resonance parameters in p̅p annihilation