Degenerate elliptic operators and analytic semigroups