Superconducting properties of ultrathin Y(Dy)Ba2Cu3O7 layers in Y(Dy)Ba2Cu3O7-PrBa2Cu3O7 heterostructures