Ultrafast polarization switching in thin-film ferroelectrics