A mechanism for carbon nanosheet formation