Giant planets around two intermediate-mass evolved stars and confirmation of the planetary nature of HIP 67851c