Surface States in Nearly Modulated Systems