Pork Tenderloin with Roasted Apples and Onions