Novel phase of carbon, ferromagnetism, and conversion into diamond