Avicii’s fortunes mirrored the money-spinning rise of electronic dance music