Density Matrix in Terms of Spin Correlation Functions for S=1 Spin Systems