Five- and six-membered-ring formation from olefinic .alpha.,.beta.-epoxy ketones and hydrazine