Evaluating the Euler-Poincaré characteristic of a set using a spatial tessellation