convert from Cartesian to fractional coordinates