Phase separation in confined geometries: Solving the Cahn-Hilliard equation with generic boundary conditions Article uri icon