Casper Ruud åpnet med å bli utspilt, men kom hardt tilbake og slo tennisveteranen Marin Cilic i strake sett i Stockholm Open.