Seven Spanish policemen suffered burns caused by a corrosive substance thrown by migrants after more than 100 forced their way past the fortified border.