Computing the first eigenpair for problems with variable exponents