Ground state of the carbon atom in strong magnetic fields