Infrared observations of hot gas and cold ice toward the low-mass protostar Elias 29