Nonsequential double ionization of alkaline-earth metal atoms by intense mid-infrared femtosecond pulses