A vegetation switch as the cause of a forest/mire ecotone in New Zealand