Understanding the link between sleep and headaches