Sobolev Estimates for Averaging Operators