critical point theory for distance functions.pdf