Determinants of the transition to the upper secondary school: differences between immigrants and Italians