'Dunkirk' edges out 'The Emoji Movie' to win the weekend box office