Optical Properties of Lead and Lead-Free Halide Perovskites