Attitude towards school, motivation, emotions and academic achievement