Tandem compound steam engine