Changing your diet can make for a better snooze.