County, cities to use grant to study trail connectivity