Characterizations of h-intra- and h-quasi-hemiregular hemirings