Pork Tenderloin with Apples and Onions