A thin film thermoelectric device fabricated by a self-aligned shadow mask method