Differentiation bases for Sobolev functions on metric spaces