Study of Even-Z Nuclei Up to Mg with the Gogny Force Using AMD