Title: Second law analysis of energy devices and processes