Electronic Band Structure and Optical Properties of HgPS3 Crystal and Layers