Effective identifiability criteria for tensors and polynomials