Dielectric black holes induced by a refractive index perturbation and the Hawking effect