Tree-structured Approximations by Expectation Propagation