Sensitivity analysisi and optimization of stochastic Petri nets