Laplace equation in a domain with a rectilinear crack: higher order derivatives of the energy with respect to the crack length