Investigating the reasons for students’ attendance in and absenteeism from lecture classes and educational planning to improve the situation