Optimal constant output feedback control for linear systems