Almond and Pistachio Cookies