Stability results for Mountain Pass and Linking type solutions of semilinear problems involving Dirichlet forms