Skiers have been rescued after being trapped for several hours in gondolas in the resort of Chamrousse in the French Alps.