Heterogeneity- and Risk-Aware Algorithms for Task Allocation To Mobile Agents