First-principles study of the alkali earth metal atoms adsorption on graphene