A Singularly Perturbed Nonideal Transmission Problem and Application to the Effective Conductivity of a Periodic Composite