SECURED CONVERTIBLE NOTE PURCHASE AGREEMENT