As record heatwaves boost demand for cooling, air conditioning becomes vital - but with a steep environmental cost.