Temperature-dependent ellipsometry measurements of partial Coulomb energy in superconducting cuprates