Cespedes homers twice, A's rally past Yankees 7-4