Multiple photodetachment of atomic anions via single and double core-hole creation