Distilling Large Language Models for Matching Patients to Clinical Trials