Structural studies of medically-interesting protease inhibitors and lectins that belong to the β-trefoil family