Let $ABCD$ be a convex quadrilateral, where $M$ is the midpoint of $DC$, $N$ is the midpoint of $BC$, and $O$ is the intersection of diagonals $AC$ and $BD$. Prove that $O$ is the centroid of the triangle $AMN$ if and only if $ABCD$ is a parallelogram.