What happened after the roman catholic church regained power in Poland?