Diversity of structural and electronic properties of P–AuBr of different dimensions