Swelling in UO2 under conditions of gas release