Absorption and single-pass gain measurements in optically pumped type-II midinfrared laser structures