A method to determineL-subshell ionization cross sections for medium and heavy elements