Bank of Granite, CommunityOne to merge