Advanced technologies for sludge treatment and recovery