Explanation of ground state orbital diagram of carbon