Improved neutrino-nucleon interactions in dense and hot matter for numerical simulations