The infrared spectrum of the carbon star Y Canum Venaticorum between 1.2 and 30 microns