Do friends always help your studies? Mediating processes between social relations and academic motivation