Angel di Maria scored two minutes from time to send Argentina into the last 8 after a 1-0 win over Switzerland.