Spectroscopic studies of Nd3+ and Er3+ in KGd(WO4)2 single crystals