Study explains why thinking hard makes people feel tired.