The YA author on his debut novel, the impact of the Belfast Agreement, and why queer voices are essential for young people finding their own identities