Four-wave mixing of Nd3+-doped crystals and glasses.