Late-type giant variables in NGC 6522, LMC and SMC. How do they differ?