Spin-correlated crystal-field interactions in NdF3, Nd3+:LaF3, and Nd3+:LiYF4