Numerical simulation of a thermally driven hydrogen compressor as a performance optimization tool