Asymptotic solution of singularly perturbed linear-quadratic optimal control problems with discontinuous coefficients