Isoscalar monopole and dipole transitions in $^{24}$Mg, $^{26}$Mg and $^{28}$Si