Investigation of Optical Spectrum Properties of Hexagonal Boron Nitride from Metal to Dielectric Transition