Elucidating the role of stacking faults in TlGaSe2 on its thermoelectric properties