Dynamical-charge neutrality at a crystal surface