Endogenous temporal orienting of attention in detection and discrimination tasks