Influence of hydration on the conformational stability and formation of bends in terminally blocked dipeptides