The theoretical framework for a methodology for diagnosing and evaluating regional economic security