Riverine thermal environment and ecological function across a rural-urban gradient