The analytic structure of algebraic quantum groups