WARSAW — A few weeks after Russia invaded Ukraine, Joanna Pandera, a Polish energy expert, removed the gas stovetop from her kitchen and replaced it with an electric range. She signed a contract for an electric heat pump so that she would no longer need Russian natural gas to warm her home through Poland’s long winters.