General Form and Optimal Design of Deadbeat State Observers