High-resolution electron microscopy of the high-temperature superconductor YBa2Cu3O7