Crystal structure and texture refinement of polymers from diffraction images