Optical determination of the relation between the electron-boson coupling function and the critical temperature in high- Tc cuprates