Effects of Glass Transition and Structural Relaxation on Crystal Nucleation: Theoretical Description and Model Analysis