Automated reference-free detection of motion artifacts in magnetic resonance images