Iterative refinement of hierarchical T-meshes for bases of spline spaces with highest order smoothness