The stability of coordination polyhedrons and distribution of europium ions in Ca6BaP4O17.