Pasta with Spicy Tofu and Pistachios