High-field nuclear magnetic resonance in aligned powders of YBa2Cu3O7