Structural, electrical and optical properties of halogen doped phosphorene based on density functional theory