Explicit primality criteria for $h\cdot2^n\pm1$