Comparing penalized splines and fractional polynomials for flexible modelling of the effects of continuous predictor variables