A generalized analytic solution to the win ratio to analyze a composite endpoint considering the clinical importance order among components