Cowing returns punt for TD to spark 49ers in pre-season win over Chargers