Characterization of inner product spaces by means of orthogonally additive mappings