Nanomedicine applications mediated by electromagnetic fields