Why a lack of sleep often makes you crave late-night snacks