Increasing thermoelectric performance using coherent transport