Synthesis, thermal analysis, and linear and nonlinear optical characterization of substituted polyphosphonates derived from 1,12-dodecanediol