Complete convergence and almost sure convergence of weighted sums of random variables