ISO observations of a sample of Compact Steep Spectrum and GHz Peaked Spectrum radio galaxies