Customization of a self-processing polymer for obtaining specific diffractive optical elements