TimeRewarder: Learning Dense Reward from Passive Videos via Frame-wise Temporal Distance