Light variations of massive stars (alpha Cyg variables). XVIII. The B[e] supergiants S 18 in the SMC and R 66 = HDE 268835 and R 126 = HD 37974 in the LMC