Advances in inorganic and hybrid perovskites for miniaturized lasers