When were the first planets formed?