Superconducting energy gaps in YBa2Cu3O7 and Bi2Sr2CaCu2O8