formation of celestial bodies