Electronic structure and electron-phonon interaction in the ternary silicides M ALSi (M=Ca, Sr, and Ba)