On the core of a unicyclic graph