Relations between the mountain pass theorem and local minima