DIRECT INVERSION METHOD FOR OBTAINING ANISOTROPIC POTENTIALS FROM ROTATIONALLY INELASTIC AND ELASTIC CROSS-SECTIONS