Optimizing spatial distribution to minimize the inline directivity for a marine air-gun source