Incorporation of Pr in YBa2Cu3O7−δ: electronic effects on superconductivity