Directivity and S-parameters computation of patch antenna