Eggplant Parmigiana Casserole with Pesto