Long-Time Dynamics and Optimal Control of a Diffuse Interface Model for Tumor Growth