Acylations of β-Diketones with Dimethyl Malonate to Give 3,5,7-Triketo Esters and Their Cyclization Products