Direct extraction of the eliashberg function for electron-phonon coupling: A case study of be(1010̄)