The answer to whether it’s okay to leave your phone plugged in overnight has become more nuanced in recent years