Modification of the material of dielectric layers