General relativity and the accelerated expansion of the universe