Israel detains 31 Palestinians in overnight raids