Extremal metrics for eigenvalues of the Laplace–Beltrami operator on surfaces