Dynamic properties of liquid alkaline-earth metals