Treat type 2 diabetes with electromagnetic fields