Effects of p doping on GaAs/AlGaAs SAM-APDs for X-rays detection