Behavioral and socio-ecological determinants of depression at different stages of the life course