Muslims and Hindus have made the largest gains in educational attainment over decades