The Matildas' Asian Cup campaign has ended in heartache after falling to a 1-0 loss to Japan in the final.