Entropy and exergy in irreversible renewable energy systems