Determining the electron-phonon coupling in superconducting cuprates by resonant inelastic x-ray scattering: methods and results on Nd1+xBa2−xCu3O7−δ