Blume-Emery-Griffiths model on the honeycomb lattice