Distance Effects of Phenylpiperazine-Containing Methacrylic Polymers on Optical and Structural Properties