Twist-grain-boundary phases near the nematic-smectic-A-smectic-C point in liquid crystals.