The AKP, the Army and the Gulen movement in Turkey: Anatomy of the failed coup