Robert Gates: Clinton was good at her job