Mathew Leckie claimed a fine second-half winner as Australia masterminded a World Cup shock by progressing to the knockout stages with a 1-0 victory which eliminated Denmark.