Electron density as the main parameter influencing the formation of fullerenes in a carbon plasma