Liquid chlorine in shear and elongational flows: A nonequilibrium molecular dynamics study