Generalized PI observer design for linear systems