On the application of the tolerance factor to inorganic and hybrid halide perovskites: a revised system