On the viscous Cahn-Hilliard equation with singular potential and inertial term