Triggered star formation at the borders of the H II region Sh 2-217