Mercier criterion in tokamaks with anisotropic energetic particle component