Similarity reductions of equations for river pollution