United Bankshares reaches deal to buy Virginia Commerce