Energy integral of the solution of a non-ideal transmission problem in a singularly perturbed periodic domain