DNA curving and bending in protein–DNA recognition