Air-cooled generator