Fabrication of intelligent aluminum matrix composite