Text this: Simulation study of phase change materials operating in thermoelectric devices