A method for determining a basis set suitable for the description of radiationless decay