Spicy Pork Tenderloin with Apples and Sweet Potatoes