Characterization of ICMEs and magnetic clouds