Do changes in socioeconomic factors lead to changes in mental health? Findings from three waves of a population based panel study