Fundamentals of gas reservoir engineering