Physarum can compute shortest paths