Hopping thermoelectric transport in finite systems: Boundary effects