I solved the first problem by inverting my data, and fitting an inverted function of the form
P(z) = f^-1(z) * g(w(z))
with f,g being the appropriate functions for this transformation. The remaining question is how to do this in matlab:
Fittype with expr (w is a cfit object)
'z/feval(w,z)'
or
'z/w(z)'
throws an error:
is not a valid MATLAB expression,
has non-scalar coefficients, or cannot be evaluated