Electromagnetic fields and optomechanics in cancer diagnostics and treatment