Toyota, Mazda form partnership to share technologies, confront cost challenges