Study of thin amorphous and crystalline carbon films by electron microscopy