A spatial mixed-effects regression model for electoral data