Integral forms of sums associated with harmonic numbers