Tunable superprism effect in photonic crystals