Bounds for the difference between median and mean of beta and negative binomial distributions