Fast post-placement rewiring using easily detectable functional symmetries