Catastrophic transitions in a forest-grassland ecosystem