Baked spaghetti with eggs and ricotta