average cost of rewiring a 3 bed detached house