Probing nanoscale structure and strain by dark-field x-ray microscopy