Layers of eggplant, pasta, and a puree of vegetables called a sofrito create a dense, creamy casserole that is filling and nutritious.