Solvability and sliding mode control for the viscous Cahn–Hilliard system with a possibly singular potential