Partial inner product spaces, metric operators and generalized hermiticity