A Common Generalization of Functional Equations Characterizing Normed and Quasi-Inner-Product Spaces