Sojourns and extremes of stochastic processes /