Spectral and luminescence properties of Cr4+ and Yb3+ ions in yttrium aluminum garnet (YAG)