Several thousand people have gathered outside Poland's presidential palace to protest against new restrictions on the media.