Best approximation on semi-algebraic sets and k-border rank approximation of symmetric tensors