Repairing 3D binary images using the BCC grid with a 4-valued combinatorial coordinate system