What are the different theories of how the earth is formed?