Wake-Sleep Consolidated Learning