Magnetoelastic coupling in bulk and nanoscale MnO