Average cost to rebuild a motor