Ab initio investigations of phonons and superconductivity in the cubic Laves structures LaAl2 and YAl2