Study of crystal-field effects in rare-earth (RE) – transition-metal (TM) intermetallic compounds and in RE-based laser crystals