A comparison of thought and perception disorders in borderline personality disorder and schizophrenia: psychotic experiences as a reaction to impaired social functioning