The effect of pressure on the antiferromagnetic and superconducting states of heavy-fermion UPd2Al3