Analysis of electronic structure and charge density of the high-temperature superconductor YBa2Cu3O7