Free-discontinuity problems generated by singular perturbation