Thin-film-based thermoelectric energy generator device with a card structure