The impact of music on educational attainment