Structure-based engineering of immunomodulatory agents for the treatment of cancer