The structure of the ions in potassium chlorate