Using the Ferrenberg-Swendsen Monte Carlo method for nonuniversal exponents