Capital structure and firm boundaries with opportunistic stakeholders