Cable companies Charter and Cox agree to merge