Attitude towards mathematics: a bridge between beliefs and emotions