Bending induced rippling and twisting of multiwalled carbon nanotubes.