Swelling of oil-based drilling fluids resulting from dissolved gas