Using optical satellite and aerial imagery for automatic coastline mapping