Thermoelectric efficiency of three-terminal quantum thermal machines