how did albert einstein come up with the theory of relativity