Identification of configuration and boundaries of interplanetary magnetic clouds