Baby Busts and Baby Booms: The Fertility Response to Shocks in Dynastic Models