Measurement of the resonance parameters of the (1P) and (1P) states of charmonium formed in antiproton–proton annihilations