Teenager thanks clinicians for saving his life after cardiac arrest