An efficient linear elastic FEM solver using automatic local grid refinement and accuracy control