Variable stars in the young open cluster IC 4996.