How does an air conditioner use the first and second laws of thermodynamics?