Necessary and sufficient conditions for flat bands in M-dimensional N-band lattices with complex-valued nearest-neighbour hopping. (10th December 2018)