Energy levels and crystal-field calculations of trivalent ytterbium in yttrium aluminum garnet and yttrium gallium garnet