Ammonia emissions and pathogen inactivation during controlled composting of pig manure