Spaghetti with Ricotta and Pistachio Pesto