Magnesium supplements are everywhere—lined up on pharmacy shelves and promoted on wellness blogs and social media.