Automatic focusing for multisectional objects in digital holography using the structure tensor