Valorisation of by-products of wastewater, sewage or sludge processing