Two BP directors will resign from the board of the Russian state-owned oil firm "with immediate effect".