Occurrence of van Hove singularities in YBa2Cu4O8 and YBa2Cu3O6.9