Precision measurement of the Xi(0) mass and the branching ratios of the decays Xi(0) -> Lambda gamma and Xi(0) -> Sigma(0)gamma