Study of different forms of carbon by analytical electron microscopy