Sharp bounds on moments of generalized order statistics