To ICO or not to ICO: Analysis of Initial Coin Offerings and Token Sales