Phase segregation in inorganic mixed-halide perovskites: from phenomena to mechanisms