In-vitro corrosion of AZ31 magnesium alloys by using a polydopamine coating