Toyota, Mazda agree on $1.6 billion tie-up, will cooperate on EVs