Inbreeding and extinction: Effects of purging