A quantitative study of influencing factors in heritage language maintenance