Determination of cellulose crystallinity from powder diffraction diagrams