Thermoelectricity and coherent caloritronics in superconducting nanodevices