Formation of homophily in academic performance: Students change their friends rather than performance