Spots, traps, and patches: asymptotic analysis of localized solutions to some linear and nonlinear diffusive systems