Risk factors and protective factors of acute postoperative pain: an observational study at a German university hospital with cross-sectional and longitudinal inpatient data