Relating bacterial dynamics and functions to gaseous emissions during composting of kitchen and garden wastes.