Large deviations for configurations generated by Gibbs distributions with energy functionals consisting of singular interaction and weakly confining potentials