Short homotopically independent loops on surfaces