Composting organic substrates of different origin: chemical, thermal and spectroscopic investigation