Necessary and sufficient conditions for H-infinity static output-feedback control