Statistics between mainshocks and foreshocks in Italy and Southern California