Refurbishment of a house in a historical building: energy saving, electrification and flexibility