Convenient synthesis of 6,7-dihydroflavopereirine and flavopereirine