On the estimation of returns to scale using variable cost functions