From useful nutrients like nitrogen and phosphorus to cellulose for construction, there is treasure to be mined in our sewage, says Graham Lawton