Determination of a flexible (12D) water dimer potential via direct inversion of spectroscopic data