A Deep Learning Framework for Thyroid Nodule Segmentation and Malignancy Classification from Ultrasound Images