Formation of quasicrystalline and amorphous phases in mechanically alloyed Al-based and TiNi-based alloys