Desorption rates and sticking coefficients for CO and N₂ interstellar ices