BMW ends talks with GM to cooperate on fuel cells