Generation of analytic semigroups by degenerate elliptic operators