Thermoelectric effects in magnetic nanostructures by