Technical aspects of upgrading composting to anaerobic digestion and post-composting