FlexQuant: A Flexible and Efficient Dynamic Precision Switching Framework for LLM Quantization