The latent heat of deconfinement in SU(3) Yang-Mills theory