A method for constructing graphs with the same resistance spectrum