Doping-dependence of the electron-phonon coupling in two families of bilayer superconducting cuprates