Charging your smartphone overnight can damage the battery and shorten its lifespan. Here's everything you need to know.