A microscopic description of the (γ,pn)-reaction