Theory of Crystal-Field Effects in 3 d-4 f Intermetallic Compounds