Intermediate Sums on Polyhedra: Computation and Real Ehrhart Theory