The development of general relativity