Error estimation with guaranteed accuracy of finite element method in nonconvex polygonal domains