Carbon atom in intense magnetic fields