Egypt sentences 17 people to long jail terms for protests