Transient nitrogen injection in a cylindrical porous cap initially filled with natural gas