Precise branching ratio measurements of the decays D-0 ->pi(-)pi(+)pi(0) and D-0 -> K-K+pi(0) relative to the D-0 -> K-pi(+)pi(0) decay