Observation of the optical and acoustic electron-phonon coupling in Sc, Y and Lu dihydrides and dideuterides by electrical resistivity