A method to determine the life-time of a nuclear state by measuring theK-shell ionization probability