Novelist Niamh Campbell: ‘The Dublin of 2015 was so full of optimism. Bit by bit it got harder to stay’