Surface states in nearly modulated systems.