Research on optimal control model of complex networks security risk