what is the cause of waking up with headaches