Dimensional adaptivity in linear elasticity with hierarchical test-spaces for h- and p-refinement processes