Experiments with robots explain synchronized courtship in fiddler crabs