The Dynamics of Deforestation: evidence from Costa Rica