Periodic billiard orbits on n-dimensional ellipsoids with impacts on confocal quadrics and isoperiodic deformations