Transition between Tamm-like and Shockley-like surface states in optically induced photonic superlattices