A selective method for the direct conversion of aldehydes into .beta.-keto esters with ethyl diazoacetate catalyzed by tin(II) chloride