Stochastic dynamics of microtubules: A model for caps and catastrophes.