The edges of molecular clouds: Fractal boundaries and density structure