Understanding the transient behavior of the dew point evaporative cooler from the first and second law of thermodynamics