A simple operational gas release and swelling model: I. Intragranular gas