Simultaneous sewage sludge digestion and metal leaching using an internal loop reactor