Configuration interaction trained by neural networks: Application to model polyaromatic hydrocarbons.