Optimizing and approximating eigenvectors in max-algebra