Score-based Approach to Analysis of Unnormalized Models and Applications