Pulse shape analysis of scintillation signals from pure and xenon-doped liquid argon for radioactive background identification