While sleep is critical to mental and physical health, an increasing number of people are accustomed to using screens in bed.