An optimization algorithm for a distributed-loop model of an avian urine concentrating mechanism