Photopolarimeter based on two gratings recorded in thin organic films