An autistic teenager who was groomed by a neo-Nazi and accused of terror offences attempted suicide days before she was charged and had a far-right “alter ego” in her mind, an inquest was told.