Scotland striker Kenny Miller has announced his retirement from international footbal with immediate effect.