Study of microporosity formation in nickel-base superalloys