The effective temperatures of AM stars from the infrared flux method.