Effects of environmental and social factors on sexual maturity and sex inversion in captive dusky grouper Epinephelus marginatus.