Biochemical and phylogenetic networks-II: X-trees and phylogenetic trees