A class of non-Shannon-type information inequalities and their applications