Early-warning model based on extension analysis for ecological security and its application: case study of Shaanxi Province