Enhancing LLM Fine-tuning for Text-to-SQLs by SQL Quality Measurement