Density-functional-theory investigation of pressure induced semiconductor–metal transitions in the ferromagnetic semiconductor HgCr2Se4