Variational formula for a body with a crack and its applications (review)