Sri Lanka’s spinners backed up by Nissanka’s unbeaten century leave Australia needing a miracle to make it to the next round