What is the typical lifespan of a water heater, and when should I consider replacing it instead of repairing it?