On the Cahn-Hilliard equation with dynamic boundary conditions