Measurement method for the nuclear anapole moment of laser-trapped alkali-metal atoms