Improving sensitivity of a BEGe-based high-purity germanium spectrometer through pulse shape analysis