Matildas to battle for Olympic bronze following gritty loss to Sweden