Boundary control problem and optimality conditions for the Cahn–Hilliard equation with dynamic boundary conditions