Saturable and reverse saturable absorption of a linear polymer in dimethylformamide