Influence of metal ions intercalation on the vibrational dynamics of water confined between MXene layers