Prevalence and functions of self-injurious thoughts and behaviors in a sample of Spanish adolescents assessed in mental health outpatient departments