Tokamak toroidal rotation caused by AVDEs and ELMs