Study of the structure of 36S and 38Ar