Tunable-focus lens for adaptive eyeglasses