Ricci flatness of asymptotically locally Euclidean metrics