Nanotherapeutics in the management of infections and cancer