Layered materials with 2D connectivity for thermoelectric energy conversion