Hirota quadratic equations for the extended Toda hierarchy