Local elastic stability for nematic liquid crystals.