Medvedev promises to look for compromise on gas with Ukraine