State observation for systems with linear dynamics and polynomial output