The complex relationship between students’ critical thinking and epistemological beliefs in the context of problem solving