Optimal boundary regularity and Green function estimates for nonlocal equations in divergence form | Synapse