Criterions of Wiener type for minimally thin sets and rarefied sets associated with the stationary Schr\"odinger operator in a cone