Linear and non-linear gratings in DR1 side chain polymers