Irreversible thermodynamic analysis and application for molecular heat engines