The comparative study of irreversibility effects in Nb foil and high-temperature superconducting ceramics by μSR