An algorithm for generic and low-rank specific identifiability of complex tensors