Crystal field splitting in Srn+1IrnO3n+1 (n = 1,2) iridates probed by x-ray Raman spectroscopy