Characterization of thin graphite layers and graphene by energy dispersive X-ray analysis