Exploration trees and conformal loop ensembles