Dynamic headspace analysis of solid waste materials