Nucleotide-dependent bending flexibility of tubulin regulates microtubule assembly