Praseodymium valency from crystal structure in Pr-Ba-Cu-O and (Y-Pr)-Ba-Cu-O single crystals