Nonlinear absorption and refraction in near-detuned rubidium vapor