The Matildas have staged a nail-biting second-half comeback to defeat Zambia 6-5 in a pulsating match at the Stade de Nice.