State-estimation and System Security Assessment