THERMOENERGY CORPORATION Securities Purchase Agreement