Differential relevance of intelligence and motivation for grades and competence tests in mathematics