Surface Effects on the Electronic Properties of YBa2Cu3O7