An Analysis of the Embedded Discontinuous Galerkin Method for Second-Order Elliptic Problems