Quantum-optical nonlinearities induced by Rydberg-Rydberg interactions: A perturbative approach