Electrical, thermomechanical and cost analyses of a low-cost thermoelectric generator