Understanding treatment-related phenotypes in depression and anxiety: genetic and longitudinal approaches