Influence of composition on the structural and superconducting properties of the two polymorphic forms of iridium- or silicon-substituted YIr2Si2