Free subgroups of generalized triangle groups