Capacity of level sets of certain stochastic processes