Transition from Connected to Fragmented Vegetation across an Environmental Gradient: Scaling Laws in Ecotone Geometry