Automorphism groups of generic structures: extreme amenability and amenability