Distribution of the time of the maximum for stationary processes