Finite-volume method for the Cahn-Hilliard equation with dynamic boundary conditions