Convective motions in the scrape-off layer of magnetically confined plasmas