Structural and optical properties evolution in pressure-induced amorphization of metal-organic framework ZIF-8