A relaxation theorem in the space of functions of bounded deformation