Influence of surface interactions on folding and forced unbinding of semiflexible chains.